﻿using System;
using Electronic_work_order.Model;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using System.Linq;
using System.Threading.Tasks;

namespace Electronic_work_order.Interfacess.OA_travel_on_business_LEI
{
    public class Sqltravel_on_business : Itravel_on_business
    {

        private readonly AppDbContext _context;

        public Sqltravel_on_business(AppDbContext context)
        {
            _context = context;
        }

        //差旅费申请
        public int AddItravel_on_business(travel_on_business io)
        {
            _context.Travel_On_Businesses.Add(io);
            return _context.SaveChanges();
        }
    }
}
